package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.entity.Comment;
import com.example.exception.FloraException;


/**
 * 评论表(Comment)表服务接口
 *
 * @author makejava
 * @since 2022-11-21 19:18:49
 */
public interface CommentService extends IService<Comment> {

    IPage<Comment> getRootComment(int type,Long articleId, int pageNum, int pageSize);

    IPage<Comment> getChildrenComment(Long commentId, int pageNum, int pageSize);

    Comment addComment(Comment comment) throws FloraException;

    void deleteComment(Long commentId) throws FloraException;
}

